/**
 * Created by : Hemant Gonjare
 */

function go_back(frm)
			{
			//alert("sdsd");
			document.forms[frm].action="jsp_pages/HomePage.jsp";
			}
   			
   	function set_sex(value)
   			{
   				if(value == "mr")
   					{
   						//alert("sdsd");
   						document.getElementsByName('sex')[0].value = "पुरुष";
   					}
   				if(value == "mrs")
					{
   						//alert("sdsd");
   						document.getElementsByName('sex')[0].value = "स्त्री";
					}
   			}
   	function Enable_handicap(value)
   			{
   				if(value == "no")
   					{
   						document.getElementById("handicap_label").style.display="none";
   	   					document.getElementById("handicap_text").style.display="none";	
   					}
   				if(value == "yes")
					{
						document.getElementById("handicap_label").style.display="Block";
	   					document.getElementById("handicap_text").style.display="Block";	
					}	
   				
   			}
   			
   	function disable()
   			{
   				document.getElementById("handicap_label").style.display="none";
  				document.getElementById("handicap_text").style.display="none";  
  				
  				document.getElementById("qt_nos").style.display="none";
				document.getElementById("qt_text").style.display="none";	
				document.getElementById("exammonthyear").style.display="none";
				document.getElementById("exam_month_year1").style.display="none";
				
				document.getElementById("enquiry_label").style.display="none";
				document.getElementById("enquiry_text").style.display="none";	
				document.getElementById("startdate").style.display="none";
				document.getElementById("enqiry_start_date").style.display="none";
				document.getElementById("enddate").style.display="none";
				document.getElementById("enqiry_end_date").style.display="none";
				document.getElementById("startdateimg").style.display="none";
				document.getElementById("enddateimg").style.display="none";
				
				document.getElementsByName('sex')[0].value = "पुरुष";
   			}
   			
   	function Enable_Exampass(value)
   			{
   				if(value == "no")
					{
						document.getElementById("qt_nos").style.display="none";
						document.getElementById("qt_text").style.display="none";	
						document.getElementById("exammonthyear").style.display="none";
						document.getElementById("exam_month_year1").style.display="none";
					}
				if(value == "yes")
				{
					document.getElementById("qt_nos").style.display="Block";
					document.getElementById("qt_text").style.display="Block";	
					document.getElementById("exammonthyear").style.display="Block";
					document.getElementById("exam_month_year1").style.display="Block";
				}
   			}
   			
   	function Enable_Enquiry(value)
   			{
   				if(value == "no")
					{
						document.getElementById("enquiry_label").style.display="none";
						document.getElementById("enquiry_text").style.display="none";	
						document.getElementById("startdate").style.display="none";
						document.getElementById("enqiry_start_date").style.display="none";
						document.getElementById("enddate").style.display="none";
						document.getElementById("enqiry_end_date").style.display="none";
						document.getElementById("startdateimg").style.display="none";
						document.getElementById("enddateimg").style.display="none";
					}
				if(value == "yes")
				{
					document.getElementById("enquiry_label").style.display="Block";
					document.getElementById("enquiry_text").style.display="Block";	
					document.getElementById("startdate").style.display="Block";
					document.getElementById("enqiry_start_date").style.display="Block";
					document.getElementById("enddate").style.display="Block";
					document.getElementById("enqiry_end_date").style.display="Block";
					document.getElementById("startdateimg").style.display="Block";
					document.getElementById("enddateimg").style.display="Block";
				}
   			}
   	/**********************start of onlynumber******************************/

	function onlyNumber()//allows to enter only digits
	{
		//alert(window.event.keyCode);
		var cnt=0;
		var count=0;
		    numberFlag = "I";
			if(numberFlag == "I")
			{
				if(window.event.keyCode < 48  || window.event.keyCode > 57)
				  window.event.keyCode=0;
				  cnt++;
			}
			count++;

	}
	/*******************end of function onlyNumber()************************/